<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/page.css">
	<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="//cdn.bootcss.com/bootstrap-fileinput/4.3.1/css/fileinput.min.css" rel="stylesheet">
	<script src="http://libs.useso.com/js/jquery/2.1.1/jquery.min.js"></script>
    <script src="__PUBLIC__/Js/fileinput.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/Js/fileinput_locale_zh.js" type="text/javascript"></script>
	<style type="text/css">
		table.hovertable {
			font-family: verdana,arial,sans-serif;
			font-size:11px;
			color:#333333;
			border-width: 1px;
			border-color: #999999;
			border-collapse: collapse;
		}
		table.hovertable th {
			background-color:#c3dde0;
			border-width: 1px;
			padding: 8px;
			border-style: solid;
			border-color: #a9c6c9;
		}
		table.hovertable tr {
			background-color:#d4e3e5;
		}
		table.hovertable td {
			border-width: 1px;
			padding: 8px;
			border-style: solid;
			border-color: #a9c6c9;
		}
		th {min-width:60px;max-width: 150px;}
		td {min-width:500px;max-width: 1000px;}

		input {min-width:80px;max-width: 150px;}

</style>
</head>
<body>

	<div style="display: inline-block; margin-top: 50px;margin-left: 50px" >
	<form id="eidt_prefe" action="__CONTROLLER__/setprefe/id/{$info.id}" method="post"  enctype="multipart/form-data">
		<table class="hovertable">
			<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
				<th>优惠名称</th>
				<td><input type="text" id="pname" name="pname" value="{$info.name}"></td>	
			</tr>
			<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
				<th>优惠类型</th>
				<td><input type="text" id="type" name="type" value="{$info.type}"></td>
			</tr>
			<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
				<th>优惠图片</th>
				<td>
					<img src="{$info.image}">
					<div>
					<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
	    			选择修改图片: <input type="file" name="image" value="">
	    			</div>
				</td>
			</tr>
			<tr onmouseover="this.style.backgroundColor='#ffff66';" onmouseout="this.style.backgroundColor='#d4e3e5';">
				<th>优惠内容</th>
				<td><textarea name="context">{$info.context}</textarea></td>
			</tr>
		</table>
		<input type="submit" value="确认修改"> 
	</form>
		<div class="pagination">{$page}</div>
	</div>
</body>
</html>


